package demo3;

/**
 * @Author 12629
 * @Description：
 */
public class Test {

    public static void drawMap(IShape iShape) {
        iShape.draw();
    }

    public static void main(String[] args) {
        drawMap(new Flower());
        drawMap(new Rect());
        drawMap(new Cycle());
    }


    public static void main1(String[] args) {
        //IShape iShape = new IShape();

        IShape iShape1 = new Flower();
        IShape iShape2 = new Rect();
        IShape iShape3 = new Cycle();

        iShape1.draw();
        iShape2.draw();
        iShape3.draw();
    }
}
